package com.yin.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yin.entity.UserEntity;
import com.yin.service.UserService;

/**
*@author LSY
*Time: 2018年12月24日上午11:18:03
*
*
*/
@RestController
@RequestMapping("user")
public class UserController {

	@Autowired
	private UserService userService;
	
	@GetMapping("/{id}")
	public UserEntity getUserById(@PathVariable("id") Long id) {
		System.out.println("=========8082");
		return userService.queryById(2L);
	}
}
